package com.feng.dt.service;

import com.feng.common.exception.ValidationException;
import com.feng.dt.model.entity.ScheduleJob;

import java.util.List;

/**
 * @author Lee
 */
public interface ScheduleJobService {

    void save(ScheduleJob scheduleJob) throws ValidationException;

    void deleteJob(List<Integer> jobIds) throws ValidationException;

    void deleteBatch(List<Integer> jobIds) throws ValidationException;

    void updateJob(ScheduleJob scheduleJob) throws ValidationException;

    public void startBatch(List<Integer> jobIds) throws ValidationException;

    void pauseJob(List<Integer> jobIds);

    void pauseBatch(Integer jobId) throws ValidationException;

    void resumeBatch(List<Integer> jobIds) throws ValidationException;

}
